<?php
	class LEO_RECHT
	{
		var $leo_id;
		var $recht_id;
		var $rechte = array();
		
		public static function initFromDbRow($row)
		{
			$LEO_RECHT = new LEO_RECHT();
			
			$LEO_RECHT->leo_id = utf8_encode ($row["leo_id"]);
			$LEO_RECHT->recht_id = utf8_encode ($row["recht_id"]);
						
			foreach ($row->recht->via("id") as $recht) 
			{ // get all tags of $application
				$rechte[] = RECHT::initFromDbRow($recht);
			}
						
			return $LEO_RECHT;
		}
	}
?>